// MUI.h: interface for the CMUI class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MUI_H__B8AF0BBE_8715_44C2_AFAB_8342F4D00E47__INCLUDED_)
#define AFX_MUI_H__B8AF0BBE_8715_44C2_AFAB_8342F4D00E47__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMUI  
{
public:
	UINT GetCurrentCP();
	UINT GetMenuCP(UINT nID);
	CMUI();
	~CMUI();

	BOOL IsDefaultCP();
	void OnLanguageMenuInitPopup(CMenu *pMenu);
	void SetCP(UINT nCP = 0);
	void UpdateMenu(CMenu *pMenu);
	CString LoadString(UINT nID);
	int LoadString(UINT nIDS, LPTSTR lpszBuf, UINT nMaxBuf = 256);
	void UpdateDialog(CDialog *pDialog, UINT IDD);

protected:
	UINT m_nCP;
//	BOOL GetIniStr(LPCTSTR szSection, LPCTSTR szEntry, CString &sResult)
//	{
//		return GetIniStr(m_pszProfileName, szSection, szEntry, sResult);
//	}
	BOOL GetIniStr(LPCTSTR szSection, LPCTSTR szEntry, CString &sResult, LPCTSTR szProfileName = m_pszProfileName);
	int GetIniStr(LPCTSTR szSection, LPCTSTR szEntry, LPTSTR lpszBuf, UINT nMaxBuf = 256);
	static CString m_pszProfileName;
	BOOL m_bNoOp;
	static char szEntry[12];
	CDWordArray m_arrLangCP;
};

#endif // !defined(AFX_MUI_H__B8AF0BBE_8715_44C2_AFAB_8342F4D00E47__INCLUDED_)
